import request from "../../../utils/request";
export const addEmail=(data)=>{
    return request({
        url: '/email/addEmail',
        method: 'post',
        data:data
    })
}
export const getBySender=(data)=>{
    return request({
        url: '/email/getBySender',
        method: 'get',
        params: {
            page: data.page,
            pagesize: data.pageSize,
            account:data.account
        }
    })
}
export const getByDraft=(data)=>{
    return request({
        url: '/email/getByDraft',
        method: 'get',
        params: {
            page: data.page,
            pagesize: data.pageSize,
            account:data.account
        }
    })
}
export const getByReceiver=(data)=>{
    return request({
        url: '/email/getByReceiver',
        method: 'get',
        params: {
            page: data.page,
            pagesize: data.pageSize,
            account:data.account
        }
    })
}
export const deleteEmail=(data)=>{
    return request({
        url: '/email/deleteEmail',
        method: 'post',
        data:data
    })
}
export const updateEmail=(data)=>{
    return request({
        url: '/email/updateEmail',
        method: 'post',
        data:data
    })
}